package main.resources.controller.command.lesson;

import main.resources.controller.command.Command;
import main.resources.controller.dao.moodle.MdlLessonDao;
import main.resources.exceptions.DaoException;
import main.resources.model.entity.moodle.MdlLesson;

public class LessonEditCommand implements Command {

	private MdlLesson lesson;
	
	public LessonEditCommand(MdlLesson lesson) {
		this.lesson = lesson;
	}

	@Override
	public void execute() throws DaoException {
		MdlLessonDao.getInstance().edit(lesson);
	}

}
